package com.example.baseproject.main.api;

import androidx.annotation.NonNull;

import com.hjq.http.annotation.HttpHeader;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestServer;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author jiangKunKun
 * @CreateDate 2024/10/8
 * @Description
 * @SpittingGrooves
 */
@Data
@Accessors(chain = true)
public class MatchApi implements IRequestApi, IRequestType, IRequestServer {
    @NonNull
    @Override
    public String getApi() {
        // 1898655284591112194  1898610105846902786
        return "xgRoundCollectPigeon/getBackHomeByRoundId?roundId=1898655284591112194&cityCode=510100";
    }

    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }
    @HttpHeader()
    private String authType = "COLLECT_DEVICE";
    @HttpHeader()
    private String Language = "zh_CN";
    @HttpHeader()
    private String collectToken = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI3NWJiMzQ4ZC1kNGVhLTQzYjItODM0My01ZjdmMzA4MDgzODciLCJpc3MiOiJTR1JfQ0xPVUQiLCJzdWIiOiJQZXJpcGhlcmFscyIsInVzZXJJZCI6MTg5NzE4MjQzNDM0NTA5NTE3MCwiaWF0IjoxNzQxNDg1MDM5fQ.P9ykZMY3OD_HTbrI4tj1WZY7iGpJnfiCpKbmfwxafYM";


    @NonNull
    @Override
    public String getHost() {
        return "http://192.168.6.107:8080/";
    }
}
